package com.bbzn.device.client.dao.fence;

import com.bbzn.device.client.dataobject.FenceDevice;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface FenceDeviceMapper {
    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(FenceDevice record);

    int insertOrUpdate(FenceDevice record);

    int insertOrUpdateSelective(FenceDevice record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(FenceDevice record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    FenceDevice selectByPrimaryKey(Long id);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(FenceDevice record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(FenceDevice record);

    List<FenceDevice> findByAll(FenceDevice fenceDevice);

    List<FenceDevice> selectByImei(@Param("imei") String imei);

    int updateBatch(List<FenceDevice> list);

    int updateBatchSelective(List<FenceDevice> list);

    int batchInsert(@Param("list") List<FenceDevice> list);

    int findCountByAll(FenceDevice fenceUser);

    /**
     * delete by primary key
     *
     * @return deleteCount
     */
    int deleteSelective(FenceDevice fenceUser);
}